<?php
	
	$view_html = &$this->puzzle->vars->default_html;
	
	if ($view_html != null)
	{
		// Load jQuery if it is not already
		
		if (!$view_html->jquery_loaded)
		{
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "jquery" . $DS . "jquery.tools.min.js";
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "jquery" . $DS . "jquery.noconflict.js";
			$view_html->jquery_loaded = true;
		}
		
		// Load jQuery slider if it is not already

		if (!$view_html->jquery_slider_loaded)
		{
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "jquery-slider" . $DS . "jquery.dependClass.js";
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "jquery-slider" . $DS . "jquery.slider-min.js";
		
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.blue.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.plastic.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.round.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.round.plastic.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.round.css";
			$view_html->view_head->params->css[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "css" . $DS . "jquery-slider" . $DS . "jslider.round.plastic.css";
	
			$view_html->jquery_slider_loaded = true;
		}
	}
	
	

?>
